define(['app'],function(app){return {module: function($scope, $http, eventBusService, httpService, params, configService) {
	$scope.form.fk_api = params.fk_api;

	$scope.saveForm = function(){
		if($scope.formCheck()){		
			httpService.post(app.urls.api_insertApiParam, $scope.form, function(data) {
				if ("0000" === data.code) {
					eventBusService.publish("content.page.reloadin",data.data);
					eventBusService.publish("modal.page.close",{});
				} else {
					alert(data.msg);
				}
			});
		}
	}
}}});